<template>
  <el-dialog
    top="30px"
    width="800px"
    title="代偿详情"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <instead-item-view :query-id="relatedId" :table-id="compsId" view-mode></instead-item-view>
  </el-dialog>
</template>

<script>
import InsteadItemView from '@/credit/views/city/risk/instead/Main'

export default {
  components: {
    InsteadItemView,
  },
  props: {
    visible: Boolean,
    relatedId: String,
    compsId: String,
  },
  data() {
    return {
      loading: false,
      related: {},
      unData: {},
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
  },
}
</script>

<style lang="scss" scoped></style>
